package com.ruihu.admin.module.business.log.interfacelog.domain.vo;

import com.ruihu.admin.module.business.log.interfacelog.domain.dto.ElectricUpdateMessageQueueDTO;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

/**
 *  [  ]
 *
 * @author Tony
 * @version 1.0
 * @company 瑞虎（南京）信息技术有限公司
 * @copyright (c) 瑞虎（南京）信息技术有限公司Inc. All rights reserved.
 * @date  2023-02-08 15:53:41
 * @since JDK1.8
 */

@Data
public class ElectricUpdateMessageQueueVO {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("电芯编码")
    private String electricCoreCode;


    public static ElectricUpdateMessageQueueVO convertToElectricUpdateMessageQueueVO(ElectricUpdateMessageQueueDTO dto) {
        if (dto == null){
            return null;
        }
        ElectricUpdateMessageQueueVO vo = new ElectricUpdateMessageQueueVO();
        vo.setId(dto.getId());
         vo.setElectricCoreCode(dto.getElectricCoreCode());
         return vo;
    }
}
